<?php
declare (strict_types = 1);

namespace app\api\controller;
use app\model\BannersModel;
use app\model\ExpressModel;
use think\App;

class Express extends Base {
    private $expressModel;

    private $req;

    public function __construct(App $app)
    {
        parent::__construct($app);

        $this->req = request()->param();

        $this->expressModel = new ExpressModel();
    }

    /*
     * 获取所有banner
     * */

    public function getInfo()
    {
        if(!isset($this->req["delivery_id"]) || empty($this->req["delivery_id"])){
            return $this->fail("快递公司编码不能为空");
        }

        $info = $this->expressModel->getInfo($this->req["delivery_id"]);

        return $this->succ($info);
    }


}
